<!DOCTYPE html>
<html lang="zh-cmn-Hans">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0">
    <title>{$feed.shop??''}客服面板</title>
    <link rel="stylesheet" href="__WEUI__/style/weui.css"/>
    <link rel="stylesheet" href="__WEUI__/example/example.css"/>
    {:think\\Hook::listen('jssdk',$myJssdk,null,true);}
  
<style type="text/css">
.t{
    font-size:12px;
    color:#666666;
    line-height:20px;
}
h1{
    color:#000000;
    border-bottom:1px #ccc solid;
}
.tools{
    width:510px;
    display:inline-block;
    background:#ebeff8;
    border:1px #d4d7e6 solid;
    padding:5px;
}
.faceBtn{
    color:#656565;
    font-size:12px;
    width:80px;
    height:25px;
    line-height:25px;
    padding-left:25px;
    background:url(__JS__/plugins/qqface/face.gif) 4px 4px no-repeat;
    cursor:pointer;
}
</style>

</head>
<body ontouchstart>

    <div class="page__bd">

    <div class="weui-panel weui-panel_access">
            <div class="weui-panel__hd">反馈系统</div>
            <div class="weui-panel__bd">
            <a href="javascript:void(0);" class="weui-media-box weui-media-box_appmsg">
                    <div class="weui-media-box__hd">
                        <img class="weui-media-box__thumb" src="{$fans.headimgurl}" alt="">
                    </div>
                    <div class="weui-media-box__bd">
                        <p class="weui-media-box__desc">{$feed.nickname}({$feed.create_time|friendlyDate})</p>
                        <span class="weui-form-preview__value">￥{$feed.pay??'0'} {$feed.content}</span>
                    </div>
            </a>

            {volist name="chats" id="chat"}
                {if condition="$chat['type'] eq 1"}
                <a href="javascript:void(0);" class="weui-media-box weui-media-box_appmsg">
                    <div class="weui-media-box__hd">
                        <img class="weui-media-box__thumb" src="{$chat.headimgurl}" alt="">
                    </div>
                    <div class="weui-media-box__bd">
                       <p class="weui-media-box__desc">客服：{$chat.admin_nickname}({$chat.create_time|friendlyDate})</p>
                        <span class="weui-form-preview__value">{$chat.content}</span>
                    </div>
                </a>
                
                {else/}

                <a href="javascript:void(0);" class="weui-media-box weui-media-box_appmsg">
                    <div class="weui-media-box__hd">
                        <img class="weui-media-box__thumb" src="{$chat.headimgurl}" alt="">
                    </div>
                    <div class="weui-media-box__bd">
                        <p class="weui-media-box__desc">{$chat.nickname}({$chat.create_time|friendlyDate})</p>
                        <span class="weui-form-preview__value">{$chat.content}</span>
                    </div>
                </a>
                {/if}
            {/volist}

                
            </div>
            
    </div>

     <form action="{:url('feed/chatAdmin')}" method="post" class="form-horizontal ajax-form">
        
        <div class="weui-cells__title">
        粉丝号：{$fans.id}，积星：{$fans.score??0}，储值：{$fans.amount??0}
        {if condition="isset($cards_info)"}{$cards_info}{/if}
        {if condition="isset($scans_info)"}{$scans_info}{/if}
        {if condition="isset($scores_info)"}{$scores_info}{/if}
        </div>
        <div class="weui-cells">
        <div class="weui-cell weui-cell_select weui-cell_select-after">
                <div class="weui-cell__hd">
                    <label for="" class="weui-label">产品</label>
                </div>
                <div class="weui-cell__bd">
                    <select class="weui-select" name="product">
                     <option value="">修改产品评价</option>
                    {volist name='ranks' id='rank'}
                        <option value="{$key}" {if condition="$feed['product'] eq $key"} selected {/if}>{$rank}</option>
                    {/volist}
                    </select>
                    
                </div>
        </div>
         <div class="weui-cell weui-cell_select weui-cell_select-after">
                <div class="weui-cell__hd">
                    <label for="" class="weui-label">服务</label>
                </div>
                <div class="weui-cell__bd">
                    <select class="weui-select" name="service">
                    <option value="">修改服务评价</option>
                    {volist name='ranks' id='rank'}
                        <option value="{$key}"  {if condition="$feed['service'] eq $key"} selected {/if}>{$rank}</option>
                    {/volist}
                    </select>
                    
                </div>
        </div>
        
        <div class="weui-cell">
            <div class="weui-cell__bd">
            <div id="face1" class="faceBtn">添加表情</div>
                <textarea class="weui-textarea" name="content" id="content1" placeholder="珍惜每一次回复，因为这是经营老顾客的基础" rows="3"></textarea>
                <div class="weui-textarea-counter"><span>0</span>/200</div>
            </div>
        </div>
      
       
        <div class="weui-cell weui-cell_select weui-cell_select-after">
                <div class="weui-cell__hd">
                    <label for="" class="weui-label">卡券</label>
                </div>
                <div class="weui-cell__bd">
                    <select class="weui-select" name="card_id">
                    {volist name='cards' id='card'}
                         <option value="">可选择卡券</option>
                        <option value="{$card.card_id}"}>{$card.title}</option>
                    {/volist}
                    </select>
                    
                </div>
        </div>
        <div class="weui-cell weui-cell_select weui-cell_select-after">
                <div class="weui-cell__hd">
                    <label for="" class="weui-label">快速</label>
                </div>
                <div class="weui-cell__bd">
                    <select class="weui-select" name="quick_content">
                        <option value="">选择快速回复</option>
                        <option value="感谢您的反馈，我们会再接再厉！"}>感谢您的反馈，我们会再接再厉！</option>
                    </select>
                    
                </div>
        </div>
         
        </div>

        <div class="weui-btn-area">
        <input type="hidden" name="feed_id"  value="{$feed.id}">
        <input type="hidden" name="openid"  value="{$fans.openid}">
        <input type="hidden" name="admin_openid"  value="{$admin_openid}">
        <input type="submit"  class="weui-btn weui-btn_primary"  value="确认">
        </div>

       
    </div>
    <div class="page__ft">
        <a href="javascript:home()"><img src="__WEUI__/example/images/icon_footer_link.png" /></a>
    </div>
    
    </form>
</div>

   
</body>
<script type="text/javascript" src="__JS__/jquery.min.js"></script>
<script src="__JS__/plugins/layer/layer.min.js" type="text/javascript"></script>

<script type="text/javascript" src="__JS__/common.js"></script>
<script type="text/javascript" src="__JS__/toast.js"></script>

<script>
wx.ready(function() {
    var share_data = {
        title : "{$feed.shop??''}{$feed.today_um}号这个客情大家看看",
        desc : "{$feed.content}",
        link : "http://weixin.isofttime.com/we/feed/chatadmin/feed_id/{$feed.id}",
        imgUrl : "{$fans.headimgurl}",
        success : function() {
            alert('分享成功');
            //close_window();
        },
        cancel : function() {

        }
    }
    onMenuShareAppMessage(share_data);
    onMenuShareTimeline(share_data);
    onMenuShareQQ(share_data);
});
</script>
<link href="__JS__/plugins/qqface/qqFace.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="__JS__/plugins/qqface/jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="__JS__/plugins/qqface/jquery.qqFace.min.js"></script>

<script type="text/javascript">
//实例化表情插件
$(function(){
    $('#face1').qqFace({
        id : 'facebox1', //表情盒子的ID
        assign:'content1', //给那个控件赋值
        path:'__JS__/plugins/qqface/face/'    //表情存放的路径
    });
  
});

//查看结果
function view(id){
    var str = $('#'+id).val();
    str = str.replace(/\</g,'&lt;');
    str = str.replace(/\>/g,'&gt;');
    str = str.replace(/\n/g,'<br/>');
    str = str.replace(/\[\/表情([0-9]*)\]/g,'<img src="face/$1.gif" border="0" />');
    $('#result').html($('#result').html() + str);
}
</script>


</html>

